<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>活跃用户推荐 - 社交平台</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        :root {
            --primary: #4F46E5;
            --primary-light: #EEF2FF;
            --secondary: #EC4899;
            --dark: #1E293B;
            --gray: #64748B;
            --light-gray: #F1F5F9;
            --border: #E2E8F0;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
        
        body {
            font-family: 'Inter', system-ui, sans-serif;
            color: var(--dark);
            background-color: #F8FAFC;
            padding-top: 3rem;
            padding-bottom: 4rem;
        }
        
        .container {
            max-width: 1200px;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 2.5rem;
            padding-bottom: 1rem;
        }
        
        .section-title {
            font-size: 2.25rem;
            font-weight: 700;
            margin-bottom: 0.75rem;
            position: relative;
            display: inline-block;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 15%;
            width: 70%;
            height: 3px;
            background-color: var(--primary);
            border-radius: 3px;
        }
        
        .section-desc {
            color: var(--gray);
            max-width: 700px;
            margin: 0 auto;
        }
        
        .users-section {
            margin-bottom: 4rem;
        }
        
        .section-subtitle {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        
        .section-subtitle i {
            color: var(--primary);
        }
        
        /* 基础用户卡片样式 */
        .user-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .user-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        .user-avatar-container {
            position: relative;
        }
        
        .user-avatar {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .user-card:hover .user-avatar {
            transform: scale(1.05);
        }
        
        .avatar-placeholder {
            background-color: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 3rem;
            font-weight: 600;
        }
        
        .user-info {
            padding: 1rem;
        }
        
        .user-name {
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 0.25rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .user-status {
            font-size: 0.8rem;
            padding: 0.15rem 0.5rem;
            border-radius: 4px;
            margin-left: auto;
        }
        
        .status-online {
            background-color: rgba(16, 185, 129, 0.1);
            color: #10B981;
        }
        
        .status-offline {
            background-color: rgba(100, 116, 139, 0.1);
            color: var(--gray);
        }
        
        .user-bio {
            color: var(--gray);
            font-size: 0.9rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .user-stats {
            display: flex;
            gap: 1rem;
            font-size: 0.85rem;
            color: var(--gray);
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .stat-item i {
            font-size: 0.9rem;
        }
        
        .user-actions {
            margin-top: 1rem;
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            flex: 1;
            font-size: 0.9rem;
            padding: 0.45rem 0;
        }
        
        /* 网格布局用户卡片 */
        .grid-users {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 1.5rem;
        }
        
        .grid-user-card .user-avatar-container {
            height: 180px;
        }
        
        /* 列表布局用户卡片 */
        .list-users {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .list-user-card {
            display: flex;
            align-items: center;
            padding: 1rem;
        }
        
        .list-user-card .user-avatar-container {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            overflow: hidden;
            flex-shrink: 0;
            margin-right: 1.25rem;
        }
        
        .list-user-card .user-info {
            flex-grow: 1;
            padding: 0;
            margin-right: 1rem;
        }
        
        .list-user-card .user-bio {
            margin-bottom: 0.5rem;
        }
        
        .list-user-card .user-actions {
            margin-top: 0;
            flex-shrink: 0;
        }
        
        /* 紧凑布局用户卡片 */
        .compact-users {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 1.5rem;
        }
        
        .compact-user-card {
            text-align: center;
            padding: 1rem;
        }
        
        .compact-user-card .user-avatar-container {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto 1rem;
            overflow: hidden;
        }
        
        .compact-user-card .user-bio,
        .compact-user-card .user-stats {
            display: none;
        }
        
        .compact-user-card .user-actions {
            margin-top: 0.75rem;
            flex-direction: column;
        }
        
        .compact-user-card .action-btn {
            padding: 0.35rem 0;
            font-size: 0.85rem;
        }
        
        /* 多图片用户样式 */
        .multi-avatar {
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        .multi-avatar img {
            position: absolute;
            width: 60%;
            height: 60%;
            border: 2px solid white;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .multi-avatar img:first-child {
            top: 0;
            left: 0;
        }
        
        .multi-avatar img:nth-child(2) {
            top: 0;
            right: 0;
        }
        
        .multi-avatar img:nth-child(3) {
            bottom: 0;
            left: 20%;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .list-user-card {
                flex-wrap: wrap;
            }
            
            .list-user-card .user-actions {
                width: 100%;
                margin-top: 1rem;
            }
        }
        
        @media (max-width: 768px) {
            .section-title {
                font-size: 1.85rem;
            }
            
            .section-subtitle {
                font-size: 1.35rem;
            }
            
            .grid-users {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
        }
        
        @media (max-width: 576px) {
            .grid-users, .compact-users {
                grid-template-columns: 1fr 1fr;
            }
            
            .list-user-card .user-info {
                margin-right: 0;
            }
            
            .user-stats {
                flex-wrap: wrap;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 页面标题 -->
        <div class="section-header">
            <h1 class="section-title">活跃用户推荐</h1>
            <p class="section-desc">发现社区中最活跃的用户，他们分享精彩内容，积极参与讨论，也许会成为你的好友</p>
        </div>
        
        <!-- 网格布局用户展示 - 支持多图和无图 -->
        <div class="users-section">
            <h2 class="section-subtitle"><i class="fas fa-th-large"></i> 热门活跃用户</h2>
            
            <div class="grid-users">
                <!-- 有单张图片的用户 -->
                <div class="user-card grid-user-card">
                    <div class="user-avatar-container">
                        <img src="https://picsum.photos/seed/user1/400/400" alt="用户头像" class="user-avatar">
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            李明
                            <span class="user-status status-online">在线</span>
                        </div>
                        <p class="user-bio">热爱摄影和旅行，用镜头记录生活中的美好瞬间，分享各地风土人情。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>528 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-image"></i>
                                <span>142 作品</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>367 动态</span>
                            </div>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                            <button class="btn btn-outline-primary action-btn">私信</button>
                        </div>
                    </div>
                </div>
                
                <!-- 有多张图片的用户（合集账号） -->
                <div class="user-card grid-user-card">
                    <div class="user-avatar-container">
                        <div class="multi-avatar">
                            <img src="https://picsum.photos/seed/group1/200/200" alt="团队成员1">
                            <img src="https://picsum.photos/seed/group2/200/200" alt="团队成员2">
                            <img src="https://picsum.photos/seed/group3/200/200" alt="团队成员3">
                        </div>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            科技前沿团队
                            <span class="user-status status-online">在线</span>
                        </div>
                        <p class="user-bio">由多位科技爱好者组成的内容团队，分享最新科技资讯和产品评测。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>12.5k 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-newspaper"></i>
                                <span>843 文章</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-heart"></i>
                                <span>42k 获赞</span>
                            </div>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                            <button class="btn btn-outline-primary action-btn">私信</button>
                        </div>
                    </div>
                </div>
                
                <!-- 没有图片的用户 -->
                <div class="user-card grid-user-card">
                    <div class="user-avatar-container avatar-placeholder">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            星辰大海
                            <span class="user-status status-offline">离线</span>
                        </div>
                        <p class="user-bio">文学爱好者，喜欢分享读书心得和原创诗歌，偶尔写一些短篇小说。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>312 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-book"></i>
                                <span>78 文章</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-comment"></i>
                                <span>205 动态</span>
                            </div>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                            <button class="btn btn-outline-primary action-btn">私信</button>
                        </div>
                    </div>
                </div>
                
                <!-- 有单张图片的用户 -->
                <div class="user-card grid-user-card">
                    <div class="user-avatar-container">
                        <img src="https://picsum.photos/seed/user2/400/400" alt="用户头像" class="user-avatar">
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            张雨晴
                            <span class="user-status status-online">在线</span>
                        </div>
                        <p class="user-bio">职业插画师，擅长卡通风格和水彩画，定期分享绘画教程和作品。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>2.3k 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-paint-brush"></i>
                                <span>326 作品</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-heart"></i>
                                <span>15k 获赞</span>
                            </div>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                            <button class="btn btn-outline-primary action-btn">私信</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 列表布局用户展示 - 适合展示更多用户 -->
        <div class="users-section">
            <h2 class="section-subtitle"><i class="fas fa-list"></i> 最新活跃用户</h2>
            
            <div class="list-users">
                <!-- 有图片的用户 -->
                <div class="user-card list-user-card">
                    <div class="user-avatar-container">
                        <img src="https://picsum.photos/seed/user3/200/200" alt="用户头像" class="user-avatar">
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            王建国
                            <span class="user-status status-online">在线</span>
                        </div>
                        <p class="user-bio">程序员，分享前端开发技术和编程心得，偶尔吐槽工作日常。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>856 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-code"></i>
                                <span>64 技术文章</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>10分钟前活跃</span>
                            </div>
                        </div>
                    </div>
                    <div class="user-actions">
                        <button class="btn btn-primary action-btn">关注</button>
                    </div>
                </div>
                
                <!-- 没有图片的用户 -->
                <div class="user-card list-user-card">
                    <div class="user-avatar-container avatar-placeholder">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            咖啡不加糖
                            <span class="user-status status-offline">离线</span>
                        </div>
                        <p class="user-bio">咖啡师，分享咖啡制作技巧和不同产地咖啡豆的特点，偶尔推荐咖啡馆。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>421 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-coffee"></i>
                                <span>38 分享</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>2小时前活跃</span>
                            </div>
                        </div>
                    </div>
                    <div class="user-actions">
                        <button class="btn btn-primary action-btn">关注</button>
                    </div>
                </div>
                
                <!-- 有多张图片的用户 -->
                <div class="user-card list-user-card">
                    <div class="user-avatar-container">
                        <div class="multi-avatar">
                            <img src="https://picsum.photos/seed/band1/200/200" alt="乐队成员1">
                            <img src="https://picsum.photos/seed/band2/200/200" alt="乐队成员2">
                        </div>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            极光乐队
                            <span class="user-status status-online">在线</span>
                        </div>
                        <p class="user-bio">独立摇滚乐队，分享原创音乐和演出视频，记录乐队的成长历程。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>5.7k 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-music"></i>
                                <span>24 首歌曲</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>30分钟前活跃</span>
                            </div>
                        </div>
                    </div>
                    <div class="user-actions">
                        <button class="btn btn-primary action-btn">关注</button>
                    </div>
                </div>
                
                <!-- 有图片的用户 -->
                <div class="user-card list-user-card">
                    <div class="user-avatar-container">
                        <img src="https://picsum.photos/seed/user4/200/200" alt="用户头像" class="user-avatar">
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            林小雨
                            <span class="user-status status-offline">离线</span>
                        </div>
                        <p class="user-bio">美食博主，擅长烘焙和家常菜，分享详细的食谱和烹饪技巧。</p>
                        <div class="user-stats">
                            <div class="stat-item">
                                <i class="fas fa-user-friends"></i>
                                <span>1.2k 粉丝</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-utensils"></i>
                                <span>96 食谱</span>
                            </div>
                            <div class="stat-item">
                                <i class="fas fa-clock"></i>
                                <span>昨天活跃</span>
                            </div>
                        </div>
                    </div>
                    <div class="user-actions">
                        <button class="btn btn-primary action-btn">关注</button>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 紧凑布局用户展示 - 适合展示大量用户 -->
        <div class="users-section">
            <h2 class="section-subtitle"><i class="fas fa-users"></i> 你可能感兴趣的用户</h2>
            
            <div class="compact-users">
                <!-- 有图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container">
                        <img src="https://picsum.photos/seed/user5/200/200" alt="用户头像" class="user-avatar">
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            陈风
                            <span class="user-status status-online">在线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
                
                <!-- 没有图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container avatar-placeholder">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            雨夜读书
                            <span class="user-status status-offline">离线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
                
                <!-- 有多张图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container">
                        <div class="multi-avatar">
                            <img src="https://picsum.photos/seed/team1/200/200" alt="团队成员1">
                            <img src="https://picsum.photos/seed/team2/200/200" alt="团队成员2">
                        </div>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            创意工作室
                            <span class="user-status status-online">在线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
                
                <!-- 有图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container">
                        <img src="https://picsum.photos/seed/user6/200/200" alt="用户头像" class="user-avatar">
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            赵晓阳
                            <span class="user-status status-offline">离线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
                
                <!-- 没有图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container avatar-placeholder">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            篮球爱好者
                            <span class="user-status status-online">在线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
                
                <!-- 有图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container">
                        <img src="https://picsum.photos/seed/user7/200/200" alt="用户头像" class="user-avatar">
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            孙梦琪
                            <span class="user-status status-offline">离线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
                
                <!-- 有多张图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container">
                        <div class="multi-avatar">
                            <img src="https://picsum.photos/seed/crew1/200/200" alt="团队成员1">
                            <img src="https://picsum.photos/seed/crew2/200/200" alt="团队成员2">
                            <img src="https://picsum.photos/seed/crew3/200/200" alt="团队成员3">
                        </div>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            户外探险队
                            <span class="user-status status-online">在线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
                
                <!-- 没有图片的用户 -->
                <div class="user-card compact-user-card">
                    <div class="user-avatar-container avatar-placeholder">
                        <i class="fas fa-user"></i>
                    </div>
                    <div class="user-info">
                        <div class="user-name">
                            电影评论员
                            <span class="user-status status-offline">离线</span>
                        </div>
                        <div class="user-actions">
                            <button class="btn btn-primary action-btn">关注</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 关注按钮交互
            const followButtons = document.querySelectorAll('.btn-primary.action-btn');
            followButtons.forEach(button => {
                button.addEventListener('click', function() {
                    if (this.textContent === '关注') {
                        this.textContent = '已关注';
                        this.classList.remove('btn-primary');
                        this.classList.add('btn-success');
                        this.innerHTML = '<i class="fas fa-check"></i> 已关注';
                    } else {
                        this.textContent = '关注';
                        this.classList.remove('btn-success');
                        this.classList.add('btn-primary');
                        this.textContent = '关注';
                    }
                });
            });
            
            // 用户卡片悬停动画增强
            const userCards = document.querySelectorAll('.user-card');
            userCards.forEach(card => {
                card.addEventListener('mouseenter', function() {
                    this.style.transition = 'all 0.3s ease';
                });
            });
        });
    </script>
</body>
</html>
    
